package com.sf.fy.uav.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sf.fy.uav.entity.RecordModuleDuration;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LTQ
 * @since 2023-11-23
 */
public interface IRecordModuleDurationService extends IService<RecordModuleDuration> {

    /**
     * 统计
     *
     * @param subjectId
     * @param subject
     * @return
     */
    Long countBySubjectId(String subjectId, String subject);

    /**
     *
     * @param subjectId
     * @param subject
     * @return
     */
    RecordModuleDuration selectLastBySubjectId(String subjectId, String subject);

    /**
     * 根据弹屏id集合查询弹出频率及点击次数等埋点数据
     * @param ids
     * @return
     */
    List<RecordModuleDuration> selectRecordModuleDurationListBySubjectIds(List<String> ids);
}
